from urllib.parse import quote

# Ansible
ansible_remote_user = "root"
ansible_result_redis_db = 10

private_key = 'files/id_rsa'

# Redis  ~~~ ansible 结果临时存放+Celery
REDIS_ADDR = "192.168.162.205"

REDIS_PORT = 6379
# 用于celery连接redis密码
REDIS_PD = "xxxxxxxx"

# 用于执行playbook连接redis密码
REDIS_PD_URL = quote("xxxxxxxx")

# Celery
task_db = broker_db = 11
result_db = 12

BROKER = "redis://:%s@%s:6379/%s" % (REDIS_PD_URL, REDIS_ADDR, broker_db)
BACKEND = "redis://:%s@%s:6379/%s" % (REDIS_PD_URL, REDIS_ADDR, result_db)

